﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using MyMeetup.Entities;

namespace MyMeetup
{
    public class ProfileAdapter : IProfile
    {
        private Member _member;
        public ProfileAdapter(Member member)
        {
            _member = member;
        }

        public string visited
        {
            get { return _member.Visited.ToString(); }
            set { _member.Visited = long.Parse(value); }
        }

        public string profile_url
        {
            get { return ""; }
            set {  }
        }

        public string bio
        {
            get { return ""; }
            set {  }
        }

        public string status
        {
            get { return ""; }
            set { }
        }


        public string updated
        {
            get { return ""; }
            set { }
        }


        public string created
        {
            get { return _member.joined.ToString(); }
            set { _member.joined = long.Parse(value); }
        }

        public string photo_url
        {
            get { return _member.Photo.photo_link; }
            set { _member.Photo.photo_link = value; }
        }

        public string name
        {
            get { return _member.Name; }
            set { _member.Name = value; }
        }

        public List<Answer> answers
        {
            get { return new List<Answer>();}
            set {  }
        }

        public string role
        {
            get { return ""; }
            set { }
        }


        public long member_id
        {
            get { return _member.MemberId; }
            set { _member.MemberId = value; }
        }
    }
}
